package com.colter.project.sample.designpattern.chain.filter;

/**
 * @author liangchao03
 * @date 2017/7/18
 */
public class TestFilter {
    public static void main(String[] args) {
        FilterChain filterChain = new FilterChain();
        filterChain.setServlet(new Servlet());
        filterChain.addFilter(new LowerCaseFilter());
        filterChain.addFilter(new NumberFilter());
        filterChain.addFilter(new SpaceFilter());

        filterChain.doFilter("a   b  c 1 2 3d 111a b c d,1!@#$","");
    }
}
